#ifndef __OLED_H
#define __OLED_H

/*引脚配置*/
#define OLED_GPIO_CLK       RCC_APB2Periph_GPIOB
#define OLED_GPIO_Port      GPIOB
#define OLED_SCL_Pin        GPIO_Pin_9
#define OLED_SDA_Pin        GPIO_Pin_7          


#define OLED_W_SCL(x)		GPIO_WriteBit(OLED_GPIO_Port, OLED_SCL_Pin, (BitAction)(x))
#define OLED_W_SDA(x)		GPIO_WriteBit(OLED_GPIO_Port, OLED_SDA_Pin, (BitAction)(x))

void OLED_Init(void);
void OLED_Clear(void);
void OLED_ShowChar(uint8_t Line, uint8_t Column, char Char);
void OLED_ShowString(uint8_t Line, uint8_t Column, char *String);
void OLED_ShowNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowSignedNum(uint8_t Line, uint8_t Column, int32_t Number, uint8_t Length);
void OLED_ShowHexNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowBinNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);

#endif
